<?php
class Control_Xheditor extends QUI_Control_Abstract {
	static $inited=false;
	function render(){
		$mode=$this->_extract('mode');
		$this->class.=' xheditor';
		if ($mode) $this->class.='-'.$mode;
		$out='';
		if (!self::$inited){
			$out.='<script src="/link/xh0.9.8/xheditor.js"></script>';
			self::$inited=true;
		}
		$out.=Q::control('memo',$this->id,$this->attrs())->render();
		return $out;
	}
}
?>